
namespace GiaPhuc.Model
{
    public class CategoryModel
    {
        public int CategoryID { get; set; }
        public string CategoryName { get; set; }
    }

    public class ProductModel
    {
        public int ProductID { get; set; }
        public string ProductName { get; set; }
        public float UserRating { get; set; }
        public decimal Price { get; set; }
        public decimal Discount { get; set; }
        public decimal DiscountAmt { get { return Price * Discount; } }
        public string ImagePath { get; set; }
        public string Specification { get; set; }
        public string Url { get; set; }
        public string CartUrl { get; set; }
        public int CategoryID { get; set; }
        public string ClassNew { get; set; }
        public string ClassHot { get; set; }
    }

    public class ShopCart
    {
        public int ProductID { get; set; }
        public string ProductName { get; set; }
        public string ImagePath { get; set; }
        public float Quantity { get; set; }
        public decimal Price { get; set; }
        public decimal SubTotal { get { return (decimal)Quantity * Price; } }
    }

}

namespace GiaPhuc.Data
{
    public partial class EZPages
    {
        public string PageType
        {
            get { return define.PageTypes[ToCChapter]; }
        }
    }
}